import { t } from "@src/locales";

// 系统模块 需要被智能报表做权限
const TABLIST = [
  {
    'title': t('report.statistics.title3'),
    'reportKey': 'HELPDESKREPORT',
    'contens': [
      {
        'reportKey': 'EVENTTYPE',
        'title': t('report.statistics.title28'),
        'icon': 'icon-piechart-circle-fil',
        'msg': t('report.statistics.tip11'),
        'url': '/stats/station/new',
        'type': 'event_type'
      },
      {
        'reportKey': 'INCOMPLETEEVENT',
        'title': t('report.statistics.title29'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip12'),
        'url': '/stats/station/new',
        'type': 'undone_event'
      }
    ],
    'type': 2
  },
  {
    'title': t('report.statistics.title30'),
    'reportKey': 'WORKORDERREPORT',
    'contens': [
      {
        'reportKey': 'WOTREND',
        'title': t('report.statistics.title31'),
        'icon': 'icon-fund-fill',
        'msg': t('report.statistics.tip13'),
        'type': 'task-trend',
        'url': '/stats/plan/new'
      },
      {
        'reportKey': 'WOCALENDAR',
        'title': t('report.statistics.title32'),
        'icon': 'icon-calendar-fill',
        'msg': t('report.statistics.tip14'),
        'type': 'task-calendar',
        'url': '/stats/plan/new'
      },
      {
        'reportKey': 'WOMAP',
        'title': t('report.statistics.title33'),
        'icon': 'icon-ditu2',
        'msg': t('report.statistics.tip15'),
        'type': 'task-map',
        'url': '/stats/plan/new'
      },
      {
        'reportKey': 'WOCLASSIFICATION',
        'title': t('report.taskView.text1'),
        'icon': 'icon-piechart-circle-fil',
        'msg': t('report.statistics.tip16'),
        'url': '/stats/task/new',
        'type': 'task-class'
      },
      {
        'reportKey': 'WOEXCEPTIONNODE',
        'title': t('report.statistics.title34'),
        'icon': 'icon-piechart-circle-fil',
        'msg': t('report.statistics.tip17'),
        'url': '/stats/abnormalList',
        'type': 'pie-chart'
      },
      {
        'reportKey': 'WOEXCEPTIONREASON',
        'title': t('report.statistics.title35'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip18'),
        'url': '/stats/abnormalList',
        'type': 'histogram'
      },
      {
        'reportKey': 'WOCE',
        'title': t('report.systemView.title2'),
        'icon': 'icon-signal-fill',
        'msg': t('report.systemView.tip2'),
        'url': '/stats/system',
        'type': 'task_success'
      },
      {
        'reportKey': 'WOUCE',
        'title': t('report.statistics.title36'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip19'),
        'url': '/stats/system',
        'type': 'task_failure'
      }
    ],
    'show': 'task',
    'type': 1
  },
  {
    'title': t('report.statistics.title4'),
    'reportKey': 'PERSONNELREPORT',
    'contens': [
      {
        'reportKey': 'DEPWO',
        'title': t('report.statistics.title37'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip20'),
        'url': '/stats/task/new',
        'type': 'task-statistics'
      },
      {
        'reportKey': 'PERMAP',
        'title': t('report.statistics.title38'),
        'icon': 'icon-ditu2',
        'msg': t('report.statistics.tip21'),
        'url': '/stats/staff/new',
        'type': 'personnel-map'
      },
      {
        'reportKey': 'PERWO',
        'title': t('report.statistics.title11'),
        'icon': 'icon-detail-fill',
        'msg': t('report.statistics.tip22'),
        'url': '/stats/staff/new',
        'type': 'personnel-statistics'
      },
      {
        'reportKey': 'PEREVENT',
        'title': t('report.statistics.title5'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip23'),
        'url': '/stats/station/new',
        'type': 'personnel-event'
      },
      {
        'reportKey': 'PEREFFICIENCY',
        'title': t('report.statistics.title6'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip24'),
        'url': '/stats/staffEfficiency',
        'type': 'personnel-effectiveness'
      },
      {
        'reportKey': 'PERWORKLOAD',
        'title': t('report.statistics.title7'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip25'),
        'url': '/stats/staffEfficiency',
        'type': 'personnel-workload'
      },
      {
        'reportKey': 'PERREVENUE',
        'title': t('report.statistics.title10'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip26'),
        'url': '/stats/staff/new',
        'type': 'profit-event'
      },
      {
        'reportKey': 'PERSATISFACTION',
        'title': t('report.statistics.title8'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip27'),
        'url': '/stats/staffEfficiency',
        'type': 'personnel-satisfaction'
      }
    ]
  },
  {
    'title': t('report.statistics.title9'),
    'reportKey': 'REVENUESTATEMENT',
    'contens': [
      {
        'reportKey': 'REVENUESTATUS',
        'title': t('report.statistics.title40'),
        'icon': 'icon-piechart-circle-fil',
        'msg': t('report.statistics.tip28'),
        'url': '/foundation/stats/revenue',
        'type': 'revenue-pie'
      },
      {
        'reportKey': 'REVENUETREND',
        'title': t('report.statistics.title41'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip29'),
        'url': '/foundation/stats/revenue',
        'type': 'revenue-polyline'
      }
    ]
  },
  {
    'title': t('report.statistics.title2'),
    'reportKey': 'CONTRACT',
    'contens': [
      {
        'reportKey': 'CONTRACT_TASK',
        'title': t('report.statistics.title42'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip30'),
        'url': '/pcoperation/report/contract/task',
        'type': 'contract-task'
      }
    ],
    'type': 2
  },
  {
    'title': t('report.statistics.title22'),
    'reportKey': 'CUSTOMERREPORT',
    'contens': [
      {
        'reportKey': 'CUSTOMERSATISFACTION',
        'title': t('report.statistics.title43'),
        'icon': 'icon-piechart-circle-fil',
        'msg': t('report.statistics.tip31'),
        'url': '/stats/customer/new',
        'type': 'client-satisfaction'
      },
      {
        'reportKey': 'CUSTOMERINFORMATION',
        'title': t('report.statistics.title44'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip32'),
        'url': '/stats/customer/new',
        'type': 'client-statistics'
      },
      {
        'reportKey': 'CUSTOMERMAP',
        'title': t('report.statistics.title45'),
        'icon': 'icon-ditu2',
        'msg': t('report.statistics.tip33'),
        'url': '/stats/customer/new',
        'type': 'client-map'
      }
    ],
    'show': 'client',
    'type': 4
  },
  {
    'title': t('report.statistics.title24'),
    'reportKey': 'PRODUCTREPORT',
    'contens': [
      {
        'reportKey': 'PRODUCTWO',
        'title': t('report.systemView.title5'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip34'),
        'url': '/stats/system',
        'type': 'product_task'
      },
      {
        'reportKey': 'PRODUCTINFORMATION',
        'title':  t('report.statistics.title46'),
        'icon': 'icon-piechart-circle-fil',
        'msg': t('report.statistics.tip35'),
        'url': '/stats/product',
        'type': 'product_info'
      },
      {
          "reportKey": "SUPERQRCODEANALYSIS",
          "title": t('report.statistics.title47'),
          "icon": "icon-fund-fill",
          "msg": t('report.statistics.tip36'),
          "url": "/product/bhAnalysis",
          "type": "product_info"
      }
    ],
    'type': 3
  },
  {
    'title': t('report.statistics.title25'),
    'reportKey': 'SPREPORT',
    'contens': [
      {
        'reportKey': 'SPWAREHOUSE',
        'title': t('report.statistics.title48'),
        'icon': 'icon-signal-fill',
        'msg':  t('report.statistics.tip37'),
        'url': '/stats/part',
        'type': 'spare-parts-statistics'
      },
      {
        'reportKey': 'SPUSAGE',
        'title': t('report.statistics.title49'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip38'),
        'url': '/stats/part',
        'type': 'spare-parts-use'
      }
    ]
  },
  {
    'title': t('report.statistics.title50'),
    'reportKey': 'SERVICEREPORT',
    'contens': [
      {
        'reportKey': 'SERVICEII',
        'title': t('report.statistics.title51'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip39'),
        'url': '/stats/service'
      }
    ]
  },
  {
    'title': t('report.statistics.title27'),
    'reportKey': 'CALLCENTERREPORT',
    'contens': [
      {
        'reportKey': 'CUSTOMERINCOMINGCALL',
        'title': t('report.statistics.title52'),
        'icon': 'icon-signal-fill',
        'msg':t('report.statistics.tip40'),
        'url': '/stats/callcenter/new',
        'type': 'incoming-call'
      },
      {
        'reportKey': 'SEATEXHALENEWS',
        'title': t('report.statistics.title53'),
        'icon': 'icon-signal-fill',
        'msg': t('report.statistics.tip41'),
        'url': '/stats/callcenter/new',
        'type': 'exhale'
      }
    ]
  }
]

// 不需要智能报表做权限的放这里
const NOT_CONTROL = [
  {
    'title':  t('report.statistics.title1'),
    'reportKey': 'LARGEDATASCREEN',
    'contens': [
      {
        'reportKey': 'LARGEDATASCREENREPORT',
        'title':  t('report.statistics.title1'),
        'icon': 'icon-shujudaping',
        'msg': t('report.statistics.tip42'),
        'url': '/stats/screenData/screenDataView',
        'type': 'datascreen'
      }
    ]
  }
]

export {
  TABLIST,
  NOT_CONTROL,
};